{% autoescape on %}
  {% if identity.historical %}
    <a href="/public/view_person?proto={{proto|urlencode}}" class="identity">identity {{identity.name}}</a>
  {% else %}
    <a href="/public/view_person?key={{identity.person.key|urlencode}}" class="identity">identity {{identity.name}}</a>
  {% endif %}
{% endautoescape %}
